package personal.xjl._23java1studentdemo.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import personal.xjl._23java1studentdemo.mapper.AdminMapper;
import personal.xjl._23java1studentdemo.service.AdminService;

@Service
public class AdminServiceImpl implements AdminService {
    @Autowired
    AdminMapper adminMapper;
    @Override
    public boolean login(String username, String password) {
        return adminMapper.selectByNameAndPwd(username,password)!=null;
    }
}
